package cn.iocoder.yudao.module.mqtt.controller.admin.devicealermrecord.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import jakarta.validation.constraints.*;

@Schema(description = "管理后台 - 报警记录新增/修改 Request VO")
@Data
public class DeviceAlermRecordSaveReqVO {

    @Schema(description = "主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "31172")
    private Long id;

    @Schema(description = "订阅客户端ID", example = "11174")
    private Long subscribeWaterId;

    @Schema(description = "设备KEY", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "设备KEY不能为空")
    private String deviceKey;

    @Schema(description = "报警类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotEmpty(message = "报警类型不能为空")
    private String alarmType;

    @Schema(description = "数据类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotEmpty(message = "数据类型不能为空")
    private String dataType;

    @Schema(description = "报警的值")
    private String exceedValue;

    @Schema(description = "报警信息", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "报警信息不能为空")
    private String alarmInfo;

    @Schema(description = "微信通知： 0 关闭不通知 1等待通知，2 已经通知", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "微信通知： 0 关闭不通知 1等待通知，2 已经通知不能为空")
    private String isWeixin;

    @Schema(description = "短信通知： 0 关闭不通知 1等待通知    2已通知", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "短信通知： 0 关闭不通知 1等待通知    2已通知不能为空")
    private String isQms;

    @Schema(description = "0 离线 1 在线 ", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "0 离线 1 在线 不能为空")
    private String isOnline;

    @Schema(description = "描述", example = "随便")
    private String description;

}